package com.cskaoyan.service.system;

import com.cskaoyan.bean.MallRole;
import com.cskaoyan.model.bo.PageBo;
import com.cskaoyan.model.bo.system.PermissionUpdateBo;
import com.cskaoyan.model.bo.system.RoleCreateBo;
import com.cskaoyan.model.vo.PageListVo;
import com.cskaoyan.model.vo.system.PermissionListVo;

/**
 * @program: project-market
 * @description:
 * @author: Weiwei Liu
 * @create: 2021-11-30 17:29
 **/

public interface RoleService {

    PageListVo list(PageBo pageBo, String username);


    PageListVo options();

    MallRole create(RoleCreateBo bo);

    boolean update(MallRole role);

    PermissionListVo queryPermissions(Integer roleId);

    PermissionListVo queryAndUpdatePermissions(PermissionUpdateBo bo);
}
